import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/rb-core/core/aisle/rbp_pay_aisle/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (aisleCode) => {
  return request({
    url: '/api/rb-core/core/aisle/rbp_pay_aisle/info/'+aisleCode,
    method: 'get',
  })
}

export const aisleParam = (aisleKind) => {
    return request({
      url: '/api/rb-core/core/aisle/rbp_pay_aisle/aisleParam',
      method: 'get',
      params: {
        aisleKind
      }
    })
}

export const add = (row) => {
  return request({
    url: '/api/rb-core/core/aisle/rbp_pay_aisle/add',
    method: 'post',
    data: row
  })
}

export const updateBasic = (row) => {
  return request({
    url: '/api/rb-core/core/aisle/rbp_pay_aisle/updateBasic',
    method: 'post',
    data: row
  })
}

export const updateParam = (row) => {
  return request({
    url: '/api/rb-core/core/aisle/rbp_pay_aisle/updateParam',
    method: 'post',
    data: row
  })
}

export const updateArea = (row) => {
  return request({
    url: '/api/rb-core/core/aisle/rbp_pay_aisle/updateArea',
    method: 'post',
    data: row
  })
}